package com.ebook.fsk;

import android.app.TabActivity;
import android.content.Intent;
import android.content.res.Resources;
import android.os.Bundle;
import android.util.Log;
import android.widget.TabHost;

public class readpage extends TabActivity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.readpage);
        Resources res = getResources(); 
        TabHost tabHost = getTabHost();    
        TabHost.TabSpec spec;     
        Intent intent; 
//        Context context =getApplicationContext();
        tabHost.setup(this.getLocalActivityManager());
      intent = new Intent().setClass(this,loadtxt.class);      
        spec = tabHost.newTabSpec("artists").setIndicator("Artists",                     
        		res.getDrawable(R.drawable.tabhostsong))
        		.setContent(intent);    
        tabHost.addTab(spec);  
        String tag="zgrc";
		Log.e(tag,"cuole");
//        		.setContent(intent);    tabHost.addTab(spec);        
        		intent = new Intent().setClass(this, AlbumsActivity.class);    
        		spec = tabHost.newTabSpec("albums").setIndicator("Albums", 
        				res.getDrawable(R.drawable.tabhostsong))                  
        				.setContent(intent);   
//        				.setContent(R.id.btn1);
        		tabHost.addTab(spec);    
        		intent = new Intent().setClass(this, SongsActivity.class);    
        		spec = tabHost.newTabSpec("songs").setIndicator("Songs", 
        				res.getDrawable(R.drawable.tabhostsong)) 
        				.setContent(intent); 
//        				.setContent(R.id.btn2);
        		tabHost.addTab(spec);    
        				tabHost.setCurrentTab(2);
        				}
        
    }
